﻿<!doctype html>
<html>
	<!-- InstanceBegin template="/Templates/template1.dwt" codeOutsideHTMLIsLocked="false" -->
	<head>
		<meta charset="utf-8">
		<title>优惠劵发放</title>
		<link href="../css/Pager.css" type="text/css" rel="stylesheet" />
		<link href="../css/style.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/jquery.pager.js"></script>
		<script type="text/javascript" src="../js/pagination.js"></script>
		<script type="text/javascript" src="../js/checkLogin.js"></script>
		<script type="text/javascript" src="../js/shopSelecterNew.js"></script>
		<script type="text/javascript" src="../js/doubleDate2.0.js"></script>
		<script type="text/javascript" src="../js/utils.js"></script>
		<script type="text/javascript" src="../js/qmsk-1.1.js"></script>
		<script type="text/javascript" src="../js/commonSelecter.js"></script>
		<script type="text/javascript" src="giveCoupons.js"></script>
	</head>
	<body>
		<div id="yinying"></div>
		<div id="yinying1"></div>

		<!-- 页面列表 -->
		<div class="container" id="container">

			<div id="givePanel" style="padding: 17px; width: 773px; display: none;" class="container_R fr" >
				<div class="place">
					优惠券发放>发放
					<a class="goHome"  href="javaScript:void(0);" onclick='closeGive()'>返回</a>
				</div>
				<div class="member_search">
					<p>
						<span>栏目：</span>
						<select id="addColumn" onclick="columnSelecter(this)"></select>
					</p>
					<p>
						<span>优惠券：</span>
						<select id="addCoupons" onclick="selectCoupon(this)"></select>
						<span>数量：</span>
						<select id="addNum">
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
						</select>
						<input type="button" value="添加" class="btn" onclick="addCoupon()">
					</p>
					<p>
						<span>手机号：</span>
						<input type="text" id="addMp"/>
						<span>会员：</span>
						<input type="text" id="addMember" value="点击选择会员" readonly="readonly" onclick="selectMember(this)" />
						<input type="button" value="添加" class="btn" onclick="addMember()">
					</p>
				</div>
				<table width="100%" class="member_list" cellpadding="0"
				cellspacing="1" border="0">
					<caption>
						<strong>优惠券列表 </strong>
					</caption>
					<thead>
						<tr>
							<th>店面</th>
							<th>优惠券Id</th>
							<th>优惠券名称</th>
							<th>券数量</th>
							<th>已发放</th>
							<th>数量</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody id="couponListData"></tbody>
				</table>
				<table width="100%" class="member_list" cellpadding="0"
				cellspacing="1" border="0">
					<caption>
						<strong>会员列表 </strong>
					</caption>
					<thead>
						<tr>
							<th>会员卡号</th>
							<th>会员姓名</th>
							<th>会员手机</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody id="memberListData"></tbody>
				</table>
				<div class="submit_btn">
					<input type="button" value="发放" onclick="giveCoupon()" class="common_btn"onclick="validate()">
					<input type="button" value="取消" onclick="closeGive()" class="common_btn check_btn"onclick="validate()">
				</div>
			</div>
			<div id="dataListPanel"  class="container_R fr" style="padding: 17px; width: 773px;">
				<div class="place">
					优惠券发放
				</div>
				<div class="member_search">
					<P>
						<span>
							<input type="checkbox" id="shopIsChoosed" style="width: auto; height: auto;border:none;">
							店面</span>
						<select id="shopName" onclick="openShopListPanel(this)"></select>
						<span>起始时间 从：</span>
						<input type="text" id="startTime" class="doubledate" />
						<span>到：</span>
						<input type="text" id="endTime" class="doubledate" />
					</P>
					<P>
						<span>手机：</span>
						<input type="text" id="searchMp" />
						<span>类型：</span>
						<select id="searchType">
							<option>全部</option>
							<option value="0">客户申请</option>
							<option value="1">后台发放</option>
						</select>
						<input type="button" value="查询" class="btn" onclick="search()">
					</P>

				</div>
				<table width="100%" class="member_list" cellpadding="0"
				cellspacing="1" border="0">
					<caption>
						<strong>优惠券列表 <span id="sup">共0条</span></strong>
						<input type="button" onclick="showGive()" value="发放" class="common_btn">
					</caption>
					<thead>
						<tr>
							<th>店面</th>
							<th>类型</th>
							<th>券号</th>
							<th>会员卡号</th>
							<th>客户姓名</th>
							<th>手机</th>
							<th>数量</th>
							<th>面值</th>
							<th>创建时间</th>
							<th>失效时间</th>
							<th>来源</th>
							<th>状态</th>
						</tr>
					</thead>
					<tbody id="dataList"></tbody>
				</table>
				<div id="pager" style="float: right;"></div>
			</div>
			<div class="fc"></div>
		</div>
		<!-- InstanceEndEditable -->
		<script type="text/javascript" src="../js/header.js"></script>
		<script type="text/javascript" src="../js/left.js"></script>
		<script type="text/javascript" src="../js/footer.js"></script>
		<script type="text/javascript">
			showTab(8, 1);
		</script>
	</body>
	<!-- InstanceEnd -->
</html>
